-- GENERATED SPELL FOR [Vargul Deathwaker] --


function spell0_29890(pUnit, Event) --@Plaguebolt,n/a--
pUnit:FullCastSpellOnTarget(56038,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29890', 10500, 1)
end

function Sorts_29890(pUnit, Event)
local choix_sorts_29890 = math.random(0, 0)
if choix_sorts_29890 == 0 then
pUnit:RegisterEvent('spell0_29890', 1, 1)
end
end

function mob29890_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29890', math.random(1500, 3000), 1)
end

function mob29890_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29890_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29890_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29890, 1, 'mob29890_Action')
RegisterUnitEvent(29890, 2, 'mob29890_Leave')
RegisterUnitEvent(29890, 3, 'mob29890_Kill')
RegisterUnitEvent(29890, 4, 'mob29890_Die')
